

   
  /*远程调试接口*/
	 var ur='http://192.168.0.209:8888/wyshop'
	 var picur='http://192.168.0.209:8888';
	 var comcur='http://192.168.0.209:8888/';


   // 外网
// var ur='http://112.74.187.18/wyshop';
// var picur='http://112.74.187.18';
// var comcur='http://112.74.187.18/';
   
   
// var ur='http://czhua.iok.la:28493/wyshop'
// var ur = 'http://www.weiyuantech.com/wyshop';
// var ur = 'http://hejie.iask.in/wyshop';
// var ur = 'http://anguler.iok.la/wyshop';
  
   
	//判断是否登录
	function sign(){
		if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
			window.location.href="../login/login.html";
		}else{
			
		}
	}


   $(document).ready(function(){
   	  
   	  /*回到顶部*/
	$('.totop').on('click',function(){
		window.scrollTo( 0, 0 );
//		alert(11);
	})
	
//	var wid = Number($('.alltype').css('width').substr(0,2))+60;
//	$('.downtypeg').css('width',wid+'px');
//	
	
  $('.home_searchto').on('focus',function(){
  	  $('.searchtips').css('display','none');
  })
   	 

   	
   	  $('.loged, .tlogin').on('mouseover',function(){
// 	  	  alert(localStorage.wyshoptoken);
	   	   if(localStorage.wyshoptoken!=''){
       	  $('.tlogin').css({'background-color':'white','border-right': '1px solid #EEEEEE','border-left': '1px solid #EEEEEE','box-sizing': 'border-box'});
       	  $('.loged').css('display','block');
       	 }
       })

       $('.loged, .tlogin').on('mouseout',function(){
       	
       		$('.tlogin').css({'background-color':'#f6f7f8','border':'none'});
       	  $('.loged').css('display','none');
       })
       
       $('.myorder, .tmyorder').on('mouseover',function(){
       	  $('.tmyorder').css({'background-color':'white','border-right': '1px solid #EEEEEE','border-left': '1px solid #EEEEEE','box-sizing': 'border-box'});
       	  $('.myorder').css('display','block');
       })

       $('.myorder, .tmyorder').on('mouseout',function(){
       	  $('.tmyorder').css({'background-color':'#f6f7f8','border':'none'});
       	  $('.myorder').css('display','none');
       })
       
       $('.line_ke, .tcont').on('mouseover',function(){
       	  $('.line_ke').css({'background-color':'white','border-right': '1px solid #EEEEEE','border-left': '1px solid #EEEEEE','box-sizing': 'border-box'});
       	  $('.tcont').css('display','block');
       })

       $('.line_ke, .tcont').on('mouseout',function(){
       	  $('.line_ke').css({'background-color':'#f6f7f8','border':'none'});
       	  $('.tcont').css('display','none');
       })
       
   	
   	
   	
   	
   	
   	
   	
   	
   	
   	
         /*导航跳转*/
          $('.home_hot').on('click',function(){
          	 localStorage.wyshopwhatclass1 = $(this).text();
//        	alert($(this).text())
              localStorage.wyshopwheretypeb = 66;
              window.location.href='../home/hot.html';
          })
          
          $('.home_new').on('click',function(){
          	localStorage.wyshopwhatclass1 = $(this).text();
          	localStorage.wyshopwheretypeb = 65;
          	window.location.href='../home/hot.html';
          })
          
          $('.home_acv').on('click',function(){
          	localStorage.wyshopwhatclass1 = $(this).text();
          	localStorage.wyshopwheretypeb = 59;
          	window.location.href='../home/hot.html';
          })
          
          $('.home_topg').on('click',function(){
          	localStorage.wyshopwhatclass1 = $(this).text();
          	localStorage.wyshopwheretypeb = 64;
          	window.location.href='../home/hot.html';
          })
          
         
   	   
   	     /*首页面头部跳转代码*/ 
   	     $('.homepage').on('click',function(){
   	     	    window.location.href='../home/home.html';
   	     })
   	     
	        $('.gotoregister').on('click',function(){
	        	  window.location.href='../login/register.html';
	        });
         
          $('.tmyorder').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						window.location.href='../mine/mine_mian.html';
         	 	localStorage.wyshopwheretopage=2;
					}

         });
         
         
         $('.order_1').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						window.location.href='../mine/mine_mian.html';
         	 	localStorage.wyshopwheretopage=3;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=3;
         });
         
         $('.order_2').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=4;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=4;
         });
         
         $('.order_3').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						 window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=5;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=5;
         });
         
         $('.order_4').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=6;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=6;
         });
         
         $('.mine1').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						 window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=9;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=9;
         });
         
         $('.mine2').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						 window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=9;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=9;
         });
         
         $('.mine3').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						 window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=10;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=10;
         });
         
         $('.mine4').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						 window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=13;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=13;
         });
         
//       $('.mine4').on('click',function(){
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=6;
//       })
//       
         $('.mine5').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
						window.location.href="../login/login.html";
					}else{
						window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=11;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=11;
         });
         
         $('.home_car').on('click',function(){
         	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
							window.location.href='../login/login.html';
					}else{
						 window.location.href='../cart/cart.html';     
					}
         	   	 
        });
         
         
         /*右侧代码跳转*/
        $('.right_car').on('click',function(){
        	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
							window.location.href='../login/login.html';
					}else{
						 window.location.href='../cart/cart.html';     
					}
        });
        
        $('.youhuiquan').on('click',function(){
        	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
							window.location.href='../login/login.html';
					}else{
						 window.location.href='../mine/mine_mian.html';
         		 localStorage.wyshopwheretopage=7;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=7;
        });
        
        $('.qianbao').on('click',function(){
        	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
							window.location.href='../login/login.html';
					}else{
						window.location.href='../mine/mine_mian.html';
         	 localStorage.wyshopwheretopage=8;
					}
//       	 window.location.href='../mine/mine_mian.html';
//       	 localStorage.wyshopwheretopage=8;
        });
        
        $('.qiyeshangc').on('click',function(){
        	if(localStorage.wyshoptoken == '' || localStorage.wyshoptoken == null){
							window.location.href='../login/login.html';
					}else{
						window.location.href='../home/enterprise.html';
					}
//       	 window.location.href='../home/enterprise.html';
        });
        
        $('.guanli').on('click',function(){
        	window.location.href='../mine/mine_mian.html';
        	localStorage.wyshopwheretopage=1;
        });
        
        $('.out').on('click',function(){
        	localStorage.wyshoptoken = '';
        	localStorage.wyshoppriseId = '';
			localStorage.wyshopisAdmin = '';
        	get_mine_info();
        	
        });
        
        
        $('.tlogin').on('click',function(){
        	
           if($(this).text()=='登录'){
           
           	  window.location.href='../login/login.html';
           }
        	 
        });
        
        
        $('.gotosearch').on('click',function(){
        	if($('.home_searchto').val()==''){
        		$('.searchtips').css('display','inline-block');
        	}else{
         	 window.location.href='../home/searchto.html';
         	localStorage.wyshopwhatsearch = $('.home_searchto').val();
        	}
         });
         
         
         $('.alltype, .downtypeg').on('mouseover',function(){
	             $('.downtypeg').css('display','block');
	             $('.alltype').css('background-color','#ffc100');
//	             $('body').css({"top":"0","left":"0","position":"fixed"});
	       })     

        $('.alltype, .downtypeg').on('mouseout',function(){
       	      $('.downtypeg').css('display','none');
       	      $('.alltype').css('background-color','transparent');
//     	      $('body').css({"top":"0","left":"0","position":"static"});
        })
         
//       $('.alltype').on('click',function(){
////       	  alert($(this).css('background-color'));
//       	    if($('.downtypeg').css('display')=='none'){
//       	    	 $('.alltype').css('background-color','#ffc100');
//       	    	 $('.downtypeg').css('display','block');
//       	    }else if($('.downtypeg').css('display')=='block'){
//       	    	 $('.alltype').css('background-color','transparent');
//       	    	 $('.downtypeg').css('display','none');
//       	    }
//       });
          
          
//       $('.downtypegdiv').on('click','span',function(){
//			//  	alert($(this).attr('id'));
//			      localStorage.wyshopwhatclass = '分类：' + $(this).text();
//			    	localStorage.wyshopwheretypec = $(this).attr('id');
//			    	window.location.href='../home/classifi.html';
//			    	localStorage.wyshopwheretypeb = 0;
//			//  	alert(localStorage.wyshopwheretypec);
//			  })
         
        
           getinfor();
					function getinfor() {
						console.log('运行');
						var allcart = 0;
						$.ajax({
							url: ur + '/mobilemember/shoppingcart/listshoppingcart',
							type: 'post',
							dataType: 'json',
							headers: {
								"X-Token": localStorage.wyshoptoken
							},
							data: '',
							success: function(data){
								
								if(data.result.meta.code == 200) {
									console.log(data);
									var times = data.result.data.length;
									console.log(data.result.data.length);
									for(var y = 0; y < data.result.data.length; y++) {
										allcart += data.result.data[y].number;
									}
									$('.car_time').text(allcart);
								}else if(data.result.meta.code == 201){
									    
									$('.car_time').text(0);
								}
							},
							error: function(data) {}
						})
					}
         
         
         
         
          /*获取分类列表*/
//       getlist()
//       function getlist() {
//				$.ajax({
//					type: 'post',
//					url: ur + '/mobile/product/productCategoryList',
//					dataType: 'json',
//					data: {},
//					success: function(data) {
//						//						console.log(data)
//						var n = data.result.data.length;
//						//						console.log(JSON.stringify(data) + '>>>>>' + n);
//						for(var i = 1; i < n; i++) {
//							
//							var li = ('<span id="'+ data.result.data[i].id +'">' +data.result.data[i].name + '</span>');
//							
//							$('.downtypegdiv').append(li);
//							
//						}
//						
//					},
//				});
//			}
         
         /*获取分类列表*/
        getlist();
			function getlist() {
				$.ajax({
					type: 'post',
					url: ur + '/mobile/product/getCategoryData',
					dataType: 'json',
					data: {
						'parentId': 1
					},
					success: function(data){
						//						console.log(data)
						var n = data.categoryvoList.length;
						//						console.log(JSON.stringify(data) + '>>>>>' + n);
						for(var i = 0; i < n; i++){
							
							var li = $('<span id="'+ data.categoryvoList[i].id +'">' +data.categoryvoList[i].name + '</span>');
							
							$('.downtypegdiv').append(li);
							
							for(var p = 0; p < data.categoryvoList[i].childrens.length; p++){
//								var classify = $('<div class="category-thr-signal signal'+i+'">'+
//														'<p><span class="category-thr-color"></span><span class="category-thr-name">'+data.categoryvoList[i].childrens[p].name+'</span></p>'+
//														'<div class="category-thr-con category'+i+''+p+'">'+
//															
//														'</div>'+								
//													'</div>');
													
								var classify = $('<div class="downcate-dan signal'+i+'">'+
																		'<p>'+data.categoryvoList[i].childrens[p].name+'</p>'+
																		'<div class="downcate-dan-singal category'+i+''+p+'">'+
//																			'<span>洗发水</span><span>|</span>'+
																			
																		'</div>'+
																	'</div>');								
								        $('.downcatediv').append(classify);	
								
								
//					            alert(data.categoryvoList[i].childrens[p].childrens.length);
						            for(var o = 0; o < data.categoryvoList[i].childrens[p].childrens.length; o++){
						            	
						            	var classifysignal = $('<span class="tapwhere" id="'+data.categoryvoList[i].childrens[p].childrens[o].id+'">'+data.categoryvoList[i].childrens[p].childrens[o].name+'</span><span>|</span>');
									       $('.category'+i+''+p+'').append(classifysignal);
					            }
						            
					                $('.category'+i+''+p+'>span').eq($('.category'+i+''+p+'>span').length-1).remove();
							}

					}

					},
				});
			}
         
//          var whereidlook = 0;
//           getnewlist();
//          function getnewlist(){
//				$('.ab').html('');
////				$('.category-thr').html('');
//				$.ajax({
//					type: 'post',
//					url: ur + '/mobile/product/productCategoryList',
//					dataType: 'json',
//					data: {},
//					success: function(data) {
//						if(data.result.meta.code==200){
//												console.log(data)
//						var n = data.result.data.length;
//						//						console.log(JSON.stringify(data) + '>>>>>' + n);
//						for(var i = 0; i < n; i++){
//							
//							var li = $("<span class='abc' id=" + data.result.data[i].id + '>' +
//								data.result.data[i].name + '</span>'
//							);
//							$('.downtypegdiv').append(li);
//							
////							for(var p = 0; p < data.categoryvoList[i].childrens.length; p++){
////								var classify = $('<div class="category-thr-signal signal'+i+'">'+
////														'<p><span class="category-thr-color" style="background-color:'+colorsArr[Math.round(Math.random()*10)]+';"></span><span class="category-thr-name">'+data.categoryvoList[i].childrens[p].name+'</span></p>'+
////														'<div class="category-thr-con category'+i+''+p+'">'+
////													
////														'</div>'+								
////													'</div>');
////								$('.category-thr').append(classify);
////								$('.signal0').css('display','block');
////								
//////					            alert(data.categoryvoList[i].childrens[p].childrens.length);
////						            for(var o = 0; o < data.categoryvoList[i].childrens[p].childrens.length; o++){
////						            	
////						            	var classifysignal = $('<span class="tapwhere" id="'+data.categoryvoList[i].childrens[p].childrens[o].id+'">'+data.categoryvoList[i].childrens[p].childrens[o].name+'</span>');
////									$('.category'+i+''+p+'').append(classifysignal);
////									
////					            }
////					                
////							}
//
//					}
//                      whereidlook =  data.result.data[0].id;
//                      getlist();
//                     }
//					},
//					error:function(){
////						mui.toast('不好意思，系统错误');
//					}
//					
//				});
//			}
//
//
//
//
//
//
//			/*获取分类列表*/
//			function getlist(){
////				plus.nativeUI.showWaiting();	
////				$('.ab').html('');
//				$('.category-thr').html('');
//				$.ajax({
//					type: 'post',
//					url: ur + '/mobile/product/getCategoryData',
//					dataType: 'json',
//					data: {
//						'parentId': whereidlook
//					},
//					success: function(data) {
//						if(data.result.meta.code==200){
//						//						console.log(data)
//						var n = data.categoryvoList.length;
//						//						console.log(JSON.stringify(data) + '>>>>>' + n);
////						for(var i = 0; i < n; i++) {
////							
////							var li = $("<li class='abc' id=" + data.categoryvoList[i].id + '>' +
////								data.categoryvoList[i].name + '</li>'
////							);
////							$('.ab').append(li);
////							
////							for(var p = 0; p < n; p++){
////								var classify = $('<div class="category-thr-signal signal'+p+'">'+
////														'<p><span class="category-thr-color" style="background-color:'+colorsArr[Math.round(Math.random()*10)]+';"></span><span class="category-thr-name">'+data.categoryvoList[p].name+'</span></p>'+
////														'<div class="category-thr-con category'+p+'">'+
////															
////														'</div>'+								
////													'</div>');
////								$('.downcatediv').append(classify);
//////								$('.signal0').css('display','block');
////								
//////					            alert(data.categoryvoList[p].childrens.length);
////						            for(var o = 0; o < data.categoryvoList[p].childrens.length; o++){
////						            	
////						            	var classifysignal = $('<span class="tapwhere" id="'+data.categoryvoList[p].childrens[o].id+'">'+data.categoryvoList[p].childrens[o].name+'</span>');
////									$('.category'+p+'').append(classifysignal);
////									
////					            }
////					                
////							}
//							
//							
//							
//							for(var p = 0; p < n; p++){
////								var classify = $('<div class="category-thr-signal signal'+i+'">'+
////														'<p><span class="category-thr-color"></span><span class="category-thr-name">'+data.categoryvoList[i].childrens[p].name+'</span></p>'+
////														'<div class="category-thr-con category'+i+''+p+'">'+
////															
////														'</div>'+								
////													'</div>');
//													
//								var classify = $('<div class="downcate-dan signal'+p+'">'+
//																		'<p>'+data.categoryvoList[p].name+'</p>'+
//																		'<div class="downcate-dan-singal category'+p+'">'+
////																			'<span>洗发水</span><span>|</span>'+
//																			
//																		'</div>'+
//																	'</div>');								
//								        $('.downcatediv').append(classify);	
//								
//								
////					            alert(data.categoryvoList[i].childrens[p].childrens.length);
//						            for(var o = 0; o < data.categoryvoList[p].childrens.length; o++){
//						            	
//						            	var classifysignal = $('<span class="tapwhere" id="'+data.categoryvoList[p].childrens[o].id+'">'+data.categoryvoList[p].childrens[o].name+'</span><span>|</span>');
//									       $('.category'+p+'').append(classifysignal);
//					            }
//						            
//					                $('.category'+p+'>span').eq($('.category'+p+'>span').length-1).remove();
//							}
//							
//
//					}
////                      plus.nativeUI.closeWaiting();
//					},
//					error:function(){
////						mui.toast('不好意思，系统错误');
////						plus.nativeUI.closeWaiting();
//					}
//				});
//			}
//       
//       
         
         
         
         $('.downtypegdiv').on('mouseover','span',function(){
         	   $('.downcatediv').css('display','block');
         	   localStorage.wyshopwhatclass = '分类：' + $(this).text();
//       	   alert($(this).index());
               var indexc = $(this).index();
//             var classname = signal
//             alert(indexc);
               $('.downcate-dan').css('display','none');
         	   $('.signal'+indexc+'').css('display','block');
//            whereidlook = $(this).attr('id');
//            $('.downcatediv').html('');
//             getlist();
         });
         
         
         $('.downtypegdiv, .downcatediv').on('mouseover',function(){
         	   $('.downcatediv').css('display','block');        	   
//           $('.downcate-dan').css('display','none');
//       	   $('.signal'+indexc+'').css('display','block');
         });
         
         $('.downtypegdiv, .downcatediv').on('mouseout',function(){
         	   $('.downcatediv').css('display','none');
//           $('.downcate-dan').css('display','none');

         });
         
         $('.imageLogo').on('click',function(){
         	window.location.href='../home/home.html';
         })
         
         
         
         $('.downcatediv').on('click','.tapwhere',function(){
//       	    alert($(this).attr('id'));
         	    
				    	localStorage.wyshopwheretypec = $(this).attr('id');
				    	window.location.href='../home/classifi.html';
				    	localStorage.wyshopwheretypeb = 0;
         })
         
         
         
//       	//分类展示代码    
////		       fenleishow();
//		   function fenleishow(){
//
//			    var banboheight = 500;
//			    var felleiheight = $('.downtypegdiv>span').length*35;
////			    alert(banboheight);
////			    alert(felleiheight);
////			    alert($('.downtypegdiv>span').length*35);
//			    if(banboheight>felleiheight){
////			    	alert(11);
//			    }else if(banboheight<felleiheight){
////			    	alert(22);
//                   $('.downtypegdiv').css('height',banboheight);
//			    }
//
//       }
//		   
//				$('.lookmorefenlei').on('click',function(){
//					
//					if($(this).find('img').attr('src')=='../../image/turnxia.png'){
//						$(this).find('img').attr('src','../../image/turnsha.png');
//							var hallspan = $('.downtypegdiv>span').length*35;
//						  $('.downtypegdiv').css('height',hallspan+'px');
//					}else if($(this).find('img').attr('src')=='../../image/turnsha.png'){
//						  $(this).find('img').attr('src','../../image/turnxia.png');
//							
//						  $('.downtypegdiv').css('height','500px');
//					}
//					 
//					 
//					 
//				});
		
         
         
         
         
         
         
         
         
         
         
         
         
           //获取资料接口页面
//         alert(22);
             get_mine_info();
			function get_mine_info(){
//                alert(localStorage.wyshopisAdmin);
                  if(localStorage.wyshopisAdmin!='' && localStorage.wyshopisAdmin==2){
                  	$('.tmenber').text('企业会员');
                  	
                  }else if(localStorage.wyshopisAdmin!='' && localStorage.wyshopisAdmin==1){
                  	$('.tmenber').text('普通会员');
                  	$('.qiyeshangc').css('display','none');
                  }else if(localStorage.wyshopisAdmin ==''){
//                	alert('空');
                  	$('.qiyeshangc').css('display','none');
                  }
                 
                 if(localStorage.wyshoptoken==''){
                 	$('.tlogin').text('登录');
                 	$('.gotoregister').css('display','block');
                 }
                 
                 
				$.ajax({
					url:ur+'/mobilemember/frontmember/getInfo',
					type:'post',
					dataType:'json',
					headers:{
						'X-Token':localStorage.wyshoptoken
					},
					data:'',
					success:function(data){
						
						if(data.result.meta.code==200){
					
						
						console.log(data);
						console.log((picur+data.result.data.headphoto)+'>>>>头像');

						if(data.result.data.headphoto==null){
							$('.thead_pic>span').css('background-image','url(../../image/nogood.png)');
							
						}else if(data.result.data.headphoto!=null){
							$('.thead_pic>span').css('background-image','url('+picur+data.result.data.headphoto+')');
						}
						 
						 
					 if(data.result.data.nickName==null){
					 	$('.tlogin').text(data.result.data.phone);
					 }else if(data.result.data.nickName!=null){
					 	$('.tlogin').text(data.result.data.nickName);
					 }
                     


					}else if(data.result.meta.code==303){
//					 	alert(11);
							$('.tlogin').text('登录');
							localStorage.wyshoptoken='';
					}
						},
					error:function(e){
						console.log(JSON.stringify(e)+'0000');
					}
				})
			}
   });
